import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.ImageIcon;
import javax.swing.JFrame;

public class TwitterFrameView extends JFrame {
	public static TweetScrollPaneView tweetScrollPane;

	public TwitterFrameView() {
		this.setPreferredSize(new Dimension(Toolkit.getDefaultToolkit()
				.getScreenSize().width, Toolkit.getDefaultToolkit()
				.getScreenSize().height));
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setIconImage(new ImageIcon("image/logo/TweetieTweetieLogo.jpg")
				.getImage());
	}

	public void createAndShowGUI() {
		final BackgroundPanelView backgroundPanel = new BackgroundPanelView();
		TweetPanelView.intializeTweetPanel();
		tweetScrollPane = new TweetScrollPaneView(TweetPanelView.tweetPanel);
		TwitterButtonPanelView twitterButtonPanel = new TwitterButtonPanelView(
				backgroundPanel);

		backgroundPanel.add(tweetScrollPane);
		backgroundPanel.add(twitterButtonPanel);
		this.add(backgroundPanel);
		this.pack();
		this.setVisible(true);
	}

}
